// eslint-disable-next-line @typescript-eslint/no-var-requires
const registerRouter = require('./backend/router')
module.exports = {
    css: {
        loaderOptions: {
            sass: {
                // yarn add node-sass@5.0.0 -D   yarn add sass-loader@10.1.0 -D
                additionalData: `
                    @import "@/assets/scss/variable.scss";
                    @import "@/assets/scss/mixin.scss";
                `
            }
        }
    },
    devServer: {
        before: function (app) {
            registerRouter(app)
        }
    }
}
